package cate.common.table.activity.warorder.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("战令兑换商城")
public class WarorderMallRow extends ERow {

    @NoteField("商品ID")
    public int tid;

    @NoteField("商品内容")
    public String rwdStr;

    @NoteField("价格")
    public int price;

    @NoteField("限购")
    public int limit;

    @NoteField("每日限购")
    public boolean dailyRefresh;

    @NoteField("商城等级需求")
    public int mallLevelRequired;

    @NoteField("分组")
    public int group;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.tid = xrw.getInteger("ID", 0);
        this.rwdStr = xrw.getString("商品内容");
        this.price = xrw.getInteger("价格",0);
        this.limit = xrw.getInteger("限购",0);
        this.dailyRefresh = xrw.getBoolean("每日限购",false);
        this.mallLevelRequired = xrw.getInteger("商城等级需求",0);
        this.group = xrw.getInteger("分组",0);
    }
}
